﻿#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<time.h>

#define EASY_ROW 9
#define EASY_COL 9
#define EASY_ROWS EASY_ROW+2
#define EASY_COLS EASY_COL+2
#define EASY_COUNE 10

#define MEDIUM_ROW 16
#define MEDIUM_COL 16
#define MEDIUM_ROWS MEDIUM_ROW+2
#define MEDIUM_COLS MEDIUM_COL+2
#define MEDIUM_COUNE 40

#define DIFFICULT_ROW 30
#define DIFFICULT_COL 16
#define DIFFICULT_ROWS DIFFICULT_ROW+2
#define DIFFICULT_COLS DIFFICULT_COL+2
#define DIFFICULT_COUNE 99


extern int mode;

//初始化棋盘
void InitBoard(char board[EASY_ROWS][EASY_COLS], int row, int col, char setChar);

//打印棋盘
void DisplayBoard(char board[EASY_ROWS][EASY_COLS], int row, int col);

//布置雷
void setMine(char board[EASY_ROWS][EASY_COLS], int row, int col);

//排查雷
void CheckMine(char mine[EASY_ROWS][EASY_COLS], char show[EASY_ROWS][EASY_COLS], int row, int col);